﻿@model XSTDZ.ERP.Application.DataContracts.RemittanceRecordDto
@{
    ViewBag.Title = " - 编辑汇款记录";
}
@section header{
     <link href="@Url.Content("~/Content/Controls.css")" rel="stylesheet" type="text/css" />
     <link href="@Url.Content("~/Content/Form.css")" rel="stylesheet" type="text/css" />
}

<h2>编辑汇款记录</h2>
<div class="wp100">

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

   <table class="formtable">
    <thead>
        <tr>
            <th colspan="4">
            <div id="toptoolbar"></div>
            </th>
        </tr>
    </thead>

      <tr>

            <td class="title">@Html.LabelFor(model => model.RemittancePeoperName)<b>*</b></td>
            <td>  @Html.TextBoxFor(model => model.RemittancePeoperName, new { @class = "text" })
                @Html.ValidationMessageFor(model => model.RemittancePeoperId)
                @Html.HiddenFor(model => model.RemittancePeoperId)
                @Html.HiddenFor(model => model.Id)
                @Html.HiddenFor(model => model.BillState)
                @Html.HiddenFor(model => model.CreateID)
                @Html.HiddenFor(model => model.CreateTime)
             </td>
               <td class="title"> @Html.LabelFor(model => model.RemittanceTime)</td>
            <td> @Html.TextBoxFor(model => model.RemittanceTime, new { @class = "text" })
            <input type="hidden" value="@Model.RemittanceTime" id="RemittanceTimeVal" name="RemittanceTimeVal" />
            @Html.ValidationMessageFor(model => model.RemittanceTime)
            </td>
      </tr>

      <tr>
      

            <td class="title">@Html.LabelFor(model => model.RemittanceBank)</td>
            <td>  @Html.TextBoxFor(model => model.RemittanceBank, new { @class = "text" })
                @Html.ValidationMessageFor(model => model.RemittanceBank)
             </td>
             <td class="title"> @Html.LabelFor(model => model.RemittanceNumber)</td>
            <td> @Html.TextBoxFor(model => model.RemittanceNumber, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.RemittanceNumber)
            </td>
      </tr>
       <tr>
        <td class="title">@Html.LabelFor(model => model.RemittanceMoney) (元)</td>
            <td>  @Html.TextBoxFor(model => model.RemittanceMoney, new { @class = "text" })
                @Html.ValidationMessageFor(model => model.RemittanceMoney)
             </td>

            <td class="title">@Html.LabelFor(model => model.Remarks)</td>
            <td>  @Html.TextBoxFor(model => model.Remarks, new { @class = "text" })
                @Html.ValidationMessageFor(model => model.Remarks)
             </td>
      </tr>   
      <tr>
            <td  colspan="4">
                  <p class="divBtn">
                  <input id="HidIsCommit" name="HidIsCommit" type="hidden" value="0" />
                  <input id="HidOrgCode" name="HidOrgCode" type="hidden" value="@ViewBag.OrgCode" />
                   <input type="hidden" id="hidHttpRefeParent" name="hidHttpRefeParent" value="grid" />
                <input type="hidden" id="hidHttpPostState" name="hidHttpPostState" value="@ViewBag.PostState" />
                <input type="submit" value="@XSTDZ.ERP.Infrastructure.SystemConfig.BtnSave"  class="BtnSubmit" id="submitBtn" name="submitBtn" onclick="javascript:return setCommit(0);" />
                <input type="submit" value="@XSTDZ.ERP.Infrastructure.SystemConfig.BtnSubmit"  class="BtnSubmit" id="btnSubmit" name="btnSubmit" onclick="javascript:return setCommit(1);" />
            </p>
            </td>
        </tr>
    </table>
}
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $("#RemittanceTime").ligerDateEditor({ showTime: true, format: "yyyy-MM-dd", labelWidth: 140, labelAlign: 'left'
        });
        var productInDateVal = $("#RemittanceTimeVal").val();
        $("#RemittanceTime").ligerGetDateEditorManager().setValue(productInDateVal);

        //经办人
        $("#RemittancePeoperName").ligerPopupEdit({
            grid: getUserGridOptions(false),
            valueField: 'Key',
            textField: 'Name'
        });

    });
    //设置是否为提交
    function setCommit(v) {
        $("#HidIsCommit").val(v);
        return true;
    }
</script>
<script type="text/javascript" src="@Url.Content("~/Content/js/SelectData.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Content/js/formBase.js")"></script>